package com.design.pattern.creator.factory.pay.method;



public class Test {
    public static void main(String[] args) {
        CrossborderFactory applePayFactory = new ApplePayFactory();
        applePayFactory.createPayment().pay();

        ChurchyardFactory aliPayFactory = new AliPayFactory();
        aliPayFactory.createPayment().pay();
        ChurchyardFactory wxPayFactory = new WxPayFactory();
        wxPayFactory.createPayment().pay();
        ChurchyardFactory uniPayFactory = new UniPayFactory();
        uniPayFactory.createPayment().pay();
    }
}
